import request from "@/utils/request";

/**
 * 查询帮助中心分类列表
GET /ds/helpCate/list
接口ID：51175522
接口地址：https://www.apifox.cn/web/project/1389725/apis/api-51175522
 * @param {*} query 
 * @returns 
 */
export function helpCateList(query) {
  return request({
    url: "/ds/helpCate/list",
    method: "get",
    params: query,
  });
}

export function addHelpCate(query) {
  return request({
    url: "/ds/helpCate/add",
    method: "get",
    params: query,
  });
}
export function editHelpCate(query) {
  return request({
    url: "/ds/helpCate/edit",
    method: "get",
    params: query,
  });
}

export function removeHelpCate(id) {
  return request({
    url: "/ds/helpCate/" + id,
    method: "delete",
  });
}

export function helpList(query) {
  return request({
    url: "/ds/help/list",
    method: "get",
    params: query,
  });
}

export function addHelp(query) {
  return request({
    url: "/ds/help/add",
    method: "get",
    params: query,
  });
}

export function editHelp(query) {
  return request({
    url: "/ds/help/edit",
    method: "get",
    params: query,
  });
}

export function removeHelp(id) {
  return request({
    url: "/ds/help/" + id,
    method: "delete",
  });
}
